package a07_InterfaceAbstract;

/**
 * @Author quan
 * @Description 子类：乒乓球教练
 * @Date 2023/1/29 1:02
 */
public class PingPongCoach extends Coach implements English{
    public PingPongCoach() {
    }

    public PingPongCoach(String name, int age) {
        super(name, age);//super的用法
    }

    //重写Coach类和English接口中的方法
    @Override
    public void teach() {
        System.out.println("乒乓球教练在教怎么打乒乓球");
    }

    @Override
    public void speakEnglish() {
        System.out.println("乒乓球教练在练习说英语");
    }
}
